<?php 
header("Content-Type: text/html; charset=utf-8"); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table class="principale">
<tr>
	<th>
<?php
	if(isset($_POST['login']) && isset($_POST['password']) ){
		$login=$_POST['login'];
		$password=$_POST['password'];
		if($login=="reset" && $password="database"){
			require_once("bd_utils.php");
			$obj_utils=new bd_utils();		
			$obj_utils->connect();
				$obj_utils->resetDB();
					
			$obj_utils->close();
			
			echo "La base de donnée a été réinitialisée";
		}
	
	?>
	
	
<?php
	}

?>
	</th>
</tr>
	<tr><th><a href="./index.php?page=inscriptions.php">Retour à l'index</a></th></tr>
</table>
</body>
</html>
